package com.easthome.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
@Data
@ConfigurationProperties(prefix = "person")
public class Person {
    //@Value("${person.name}")
    private String name;
    //@Value("${person.age}")
    private Integer age;
    // @Value("${person.citys}")
    private String[] citys;

    private List<Animal> animals;


}
